PowerTCP Mail for .NET
Write(Byte[]) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > CodingStream Class > Write Method : Write(Byte[]) Method




buffer
The source location of the data to write.
Writes a sequence of bytes to the Stream and returns when the operation is complete.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub Write( _
   ByVal buffer() As Byte _
) 
Visual Basic (Usage)Copy Code
Dim instance As CodingStream
Dim buffer() As Byte
 
instance.Write(buffer)
C# 
public void Write( 
   byte[] buffer
)
Managed Extensions for C++ 
public: void Write( 
   byte[]* buffer
) 
C++/CLI 
public:
void Write( 
   array<byte>^ buffer
) 

Parameters

buffer
The source location of the data to write.

Exceptions

ExceptionDescription
System.IO.IOExceptionThrown when the Stream is not writable.
System.ArgumentNullExceptionThrown when the buffer is null.
System.ArgumentOutOfRangeExceptionThrown when the offset is less than zero or when count is less than or equal to zero.
System.ArgumentExceptionThrown when the (offset + count) > buffer.Length.

Remarks

This method is a convenience overload for all derived classes by writing the entire buffer to the Stream. This method calls Write(buffer, 0, buffer.length).

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.